import React from 'react';
import {Tree, type TreeNode} from '../packages'
export default function App() {
  const treeData: TreeNode[] = [
    {
      id: '1',
      label: 'Node 1',
      children: [
        {
          id: '2',
          label: 'Node 2',
          selected: false
        },
        {
          id: '3',
          label: 'Node 3',
          selected: false,
          children: [
            {
              id: '5',
              label: 'Node 5',
              selected: false
            }
          ]
        },
      ],
      selected: false,
    },{
      id: '4',
      label: 'Node 4',
      selected: false
    }
  ]  
  return <Tree data={treeData} onChecked={(e) => {console.log('----',e)}} />
}